package com.xft.rabbitmq.rabbit.many;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author xft
 * @date 2018/3/19  12:00
 */
@Component
@RabbitListener(queues = "xft")
public class Receiver1 {
    @RabbitHandler
    public void process(String xft) {
        System.out.println("Receiver1:" + xft);
    }
}
